"""
    @Author  ：思念 
    @File    ：8.请求头加密.py
    @Date    ：2025/4/9 15:33 
"""
import requests

headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Connection': 'keep-alive',
    'Content-Type': 'application/json',
    'Origin': 'https://www.handebook.com',
    'Referer': 'https://www.handebook.com/web/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36',
    'X-Application': 'Pdfreader.Web',
    'X-Nonce': 'a3ca1fd8-44bb-4b38-3091-d21e43b5c726',
    'X-Sign': '4392CB5D52613FDA5D76ACD5FDF069B3',
    'X-Timestamp': '1744184309',
    'X-Token': 'null',
    'X-Version': 'V2.2',
    'sec-ch-ua': '"Google Chrome";v="135", "Not-A.Brand";v="8", "Chromium";v="135"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

json_data = {
    'SearchType': 0,
    'SearchKeyword': '复试仿真模拟',
    'DocumentType': ' ',
    'UniversityCode': '',
    'MajorCode': '',
    'ExamSubjectList': [],
    'PageIndex': 1,
    'PageSize': 30,
}

response = requests.post('https://www.handebook.com/api/web/document/list', headers=headers, json=json_data)

print(response.json())